<?php
/* @var $this MovieController */
/* @var $model Movie */
/* @var $form CActiveForm */

$this->breadcrumbs = array(
    Yii::t('default', 'Movies') => array('index'),
    Yii::t('default', 'Create'),
);

$this->menu = array(
    Yii::t('default', 'Administration') => array('/'),
    array('label' => Yii::t('default', 'List Movie'), 'url' => array('index')),
    array('label' => Yii::t('default', 'Manage Movie'), 'url' => array('admin')),
);
?>

<h1><?php echo Yii::t('default', 'Create Movie'); ?></h1>

<div class="form">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'movie-form-create-form',
        'enableAjaxValidation' => false,
            ));
    ?>

    <p class="note"><?php echo Yii::t('default', 'Fields with'); ?> <span class="required">*</span> <?php echo Yii::t('default', 'are required'); ?>.</p>

    <?php echo $form->errorSummary($model); ?>

    <div class="row">
        <?php echo $form->labelEx($model, 'sourceImage'); ?>
        <?php echo $form->textField($model, 'sourceImage'); ?>
        <?php echo $form->error($model, 'sourceImage'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'freeImage'); ?>
        <?php echo $form->checkBox($model, 'freeImage'); ?>
        <?php echo $form->error($model, 'freeImage'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'wikipediaUrl'); ?>
        <?php echo $form->textField($model, 'wikipediaUrl'); ?>
        <?php echo $form->error($model, 'wikipediaUrl'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'youtubeId'); ?>
        <?php echo $form->textField($model, 'youtubeId'); ?>
        <?php echo $form->error($model, 'youtubeId'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'kpId'); ?>
        <?php echo $form->textField($model, 'kpId'); ?>
        <?php echo $form->error($model, 'kpId'); ?>
    </div>


    <div class="row buttons">
        <?php echo CHtml::submitButton(Yii::t('default', 'Create')); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->